package cn.tedu.zhao;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ZhaoConfig {

    @Bean
    public BlueBlade blade1(){
        return new BlueBlade();
    }
    @Bean
    public BlueBlade blade2(){
        return new BlueBlade();
    }

    @Bean
    public ZhaoYun zhao(BlueBlade blade2){
        ZhaoYun zhaoYun=new ZhaoYun();
        zhaoYun.setBlueBlade(blade2);
        return zhaoYun;
    }

}
